/*
 * @Author: wuqingchun
 * @Date: 2024-10-29 20:27:53
 * @Description: 
 * @LastEditors: wuqingchun
 * @LastEditTime: 2024-10-30 11:17:42
 */

#include <cstdio>
#include <cstring>
#include <cerrno>
#include <thread>

#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>

#include "libnet.h"
#include "libnet_error.h"
#include "net_connection_active.h"


CNetConnectionActive::CNetConnectionActive(INetEventHandler& refEvHandler, INetTCPConnectionCallback& refCallback, const sockaddr_in& refAddr):
    CNetConnectionBase(refEvHandler, refCallback, refAddr)
{

}

CNetConnectionActive::~CNetConnectionActive()
{
    Exit();
}

int32_t CNetConnectionActive::Init()
{
    return CNetConnectionBase::InitActive();
}

void CNetConnectionActive::Exit()
{
    CNetConnectionBase::Close();
}
